package com.ark.common.domain.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;


@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class RegisterBody extends LoginBody{

    /**
     * 邮箱
     */
    @Email(message = "邮箱格式不正确")
    @NotBlank
    @Length(max = 50, message = "邮箱长度不能超过50个字符")
    private String email;
}
